#ifndef UPVIDEOLOADTHREAD_H
#define UPVIDEOLOADTHREAD_H

#include <QObject>
#include <QList>
#include "oeasycommon.h"
#include "io.h"
#include "rs.h"
#include "base.h"
#include "resumable_io.h"


class uploadVideoThread : public QObject
{
    Q_OBJECT

public:
    explicit uploadVideoThread();
    ~uploadVideoThread();

signals:
    void sigVideoWorkFinish(quint64);

public slots:
    void onInitQiniu(quint64,TRANSFER_INFO);
    void onDealwithuploadVideoRequest(quint64,QString,QString,QString,QString,QString);


private:
    char* upLoadToken(const char* bucket, Qiniu_Mac* mac);

public:


private:
    //QList<QString> m_uploadList;
    TRANSFER_INFO paraInfo;
    Qiniu_Client m_QinniuClient;
    Qiniu_Mac    m_QinniuMac;
    char accessKey[256];
    char secretKey[256];
    QString m_curFilePath;
    QString m_fileName;
    quint64 m_nId;
    QString m_uploadtoken;
    QString m_jpg1;
    QString m_jpg2;
    QString m_jpg3;
};

#endif // UPVIDEOLOADTHREAD_H
